<%layout('/beetl/common/layout.html'){%>
    <%var map;
    if(query == null)
        return;
    else{
    for(e in query){
        map = e.viewNames;
    }
    %>
	<div class="row">
		<div class="col-md-12">
		    <div class="table-responsive">
		        <table class="table table-primary mb30">
		            <thead>
		              <tr>
		              <%
		                  for(key in map){
		                  var k = key.key;
		                  var v = key.value;
		              %>
		                <th>${v}</th>
		              <%}%>
		              </tr>
		            </thead>
		            <tbody>
		            	<%
		            	 for(entity in query){
		            	%>
		              <tr>
		              	<%
		              	   for(key in map){
		              	%>
		                <td>${entity[key.key]}</td>
		                <%
		                  }
		                %>
		              </tr>
		              <%}%>
		            </tbody>
		        </table>
		    </div><!-- table-responsive -->
		</div>
	</div>
	<%}%>
<%}%>